//
//  SS_Common.swift
//  SSNews
//
//  Created by 叶竞泽 on 2017/4/30.
//  Copyright © 2017年 叶竞泽. All rights reserved.
//

import Foundation
import UIKit

let mainRed = UIColor.red
let mainWhite = UIColor.white
let mainBounds = UIScreen.main.bounds
let mainSize = mainBounds.size
let mainWidth = mainSize.width
let mainHeight = mainSize.height

let newsAppKey = "5168ab5f031b2ccff9ab8b5ed887c5d0"
let newsAPI = "http://v.juhe.cn/toutiao/index"
let wechatAPPKey = "1d3df1efbd6fccc5d2a1a9338d36ccdf"
let wechatAPI = "http://v.juhe.cn/weixin/query"

func randomColor(params: UInt32) -> UIColor {
    let random = arc4random_uniform(params)
    let color = UIColor(colorLiteralRed: Float(random / 255), green: Float(random / 255), blue: Float(random / 255), alpha: 1)
    return color
}
